/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package py.una.pol.tesis.ii.wsrest;

import com.sun.jersey.api.view.Viewable;
import javax.ejb.Stateless;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriInfo;

/**
 * REST Web Service
 *
 * @author Leandro
 */
@Path("/")
@Stateless
public class PagesResource {

    @Context
    private UriInfo context;

//    @EJB
//    private Emergencia bean;    
    /**
     * Creates a new instance of PacientesResource
     */
    public PagesResource() {
    }

    @GET
    @Path("/index")
    @Produces("text/html")
    public Response indexHome() {
                
        return Response.ok(new Viewable("/index")).build();
    }

    @GET
    @Path("/blog")
    @Produces("text/html")
    public Response indexBlog() {
             
        return Response.ok(new Viewable("/blog")).build();
    }
    
    @GET
    @Path("/about")
    @Produces("text/html")
    public Response indexAbout() {
        
        return Response.ok(new Viewable("/about")).build();
    }
    
    @GET
    @Path("/contact")
    @Produces("text/html")
    public Response indexContact() {
        
        return Response.ok(new Viewable("/contact")).build();
    }
    
    @GET
    @Path("/services")
    @Produces("text/html")
    public Response indexServices() {
        
        return Response.ok(new Viewable("/services")).build();
    }
}